<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../subPages/css.jsp"%>
<link href="css/product.css" rel="stylesheet" type="text/css" />
<body class="small-width">
	<%@include file="../subPages/top.jsp"%>
	<%@include file="../subPages/title.jsp"%>
	<%@include file="../subPages/nav.jsp"%>
	<div class="container">
		<div class="row">
			<div class="bg-white col-sm-12 shadow min-h200 mt10 p10">
				<form action="submitOrder" method="post" class="form-horizontal">
					<span id="cart_table">
					<!-- 收货地址 -->
						<div class="order-title">确认收货地址<div class="fr"><i class="iconfont B2">&#xe613;</i><a class="fm f12 C999" href="personCenter?p_action=userAddressInfo" target="_blank">地址管理</a></div></div>
						<s:iterator value="#request.adds" status="st">
							<div class="col-xs-12 p0 fm">
							    <div class="input-group mb10">
							      <span class="input-group-addon">
							        <input type="radio" aria-label="..." <s:if test="#st.first">checked="checked"</s:if> name="p_address" value="${id}">
							      </span>
							      <span class="form-control h-auto f12" >${subarea}  ${detailAddress}  (${accepter} 收)  ${telephone}  ${telephone}</span>
							    </div><!-- /input-group -->
							 </div>
							<div class="cb"></div>
						</s:iterator> 
					<!-- End:收货地址 -->
					<!-- 支付方式 -->
						<div class="order-title mt30">选择支付方式</div>
						<div class="select-radio">
							<s:iterator value="@cn.wegoteam.shop.cache.StaticDataCache@getStaticdatas('PAYMETHOD','NO')" status="st">
								<a href="javascript:void(0);" id="${code}" class="pay-method fl<s:if test="#st.first"> active</s:if>" onclick="selectRadio('pay-method','${code}','c_${code}')">${name}</a>
								<input type="radio" class="ndis" <s:if test="#st.first">checked="checked"</s:if> name="payMethod" id="c_${code}" value="${code}">
							</s:iterator>
							<div class="cb"></div>
						</div>
					<!-- End:支付方式 -->
					<!-- 物流信息 -->
						<div class="order-title mt30">选择物流</div>
						<div class="select-radio">
							<s:iterator value="#request.logistics" status="st">
								<a href="javascript:void(0);" id="${code}" class="logistics fl <s:if test="#st.first"> active</s:if>" onclick="selectLogistics('${code}','${value}')">${name}</a>
								<input type="radio" class="ndis" <s:if test="#st.first">checked="checked"</s:if> name="logistics" id="c_${code}" value="${code}">
								<input type="radio" class="ndis" <s:if test="#st.first">checked="checked"</s:if> name="freight" id="f_${code}" value="${value}">
							</s:iterator>
							<span class="B2 lh30 pl10">满${FREEOFLOGISTICS}，免运费</span>
							<div class="cb"></div>
						</div>
					<!-- End:物流信息 -->
					
						<div class="order-title mt30">订单详情</div>
						<s:iterator value="#request.cs">
							<%@include file="../subPages/orderDetail.jsp"%>
						</s:iterator> 
					</span>
					<div class="col-xs-12 col-lg-7 mb10 p0">
						<div class="input-group">
						<span class="input-group-addon bg-white" id="basic-addon1">备注</span> 
						<textarea name="message" id="message" class="form-control no-resize" rows="1" placeholder="提示：发票等需要商家注意的信息（限50字）" aria-describedby="basic-addon1"></textarea>
						</div>
					</div>
					<div class="col-xs-12 col-lg-5 f12 mb10 tr p0">
						<span class="remainder fr">&nbsp;&nbsp;&nbsp;&nbsp;可用积分:${session_user.bounds}</span>
						<div class="pro-det-num fr">
							<div class="fl">
								<a href="javascript:void(0);" onclick="min('p_jifen','0')"> <i
									class="iconfont">&#xe60e;</i> </a>
							</div>
							<div class="tb-text fl">
								<input id="p_jifen" name="bounds" type="text"
									onblur="checkNumber('p_jifen',${session_user.bounds},'0')" value="0"
									maxlength="8">
							</div>
							<div class="fl">
								<a href="javascript:void(0)"
									onclick="add('p_jifen',${session_user.bounds},'0')"> <i
									class="iconfont">&#xe604;</i> </a>
							</div>
						</div> 
					</div>
					<div class="cb"></div>
					<button type="submit" class="btn btn-danger fr">提交订单</button>
					<div class="fr tr h40 lh40 mr20">
						应付总额：￥<span id="total">${totalMoney}</span>+￥<span id="freight">${freight}</span>（运费）=
						<span class="F40 fb">￥</span> <span id="finallyPay" class="F40 fb f18">${finallyPay}</span>
					</div>
					<div class="cb"></div>
				</form>
			</div>
		</div>
	</div>



	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<%@include file="../subPages/footer.jsp"%>
	<script type="text/javascript" src="js/product.js"></script>
	<script type="text/javascript" src="js/cart.js"></script>
</body>
</html>
